package com.yc.web.DTO;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
public class RedPacketActivityDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long activityId;  // 红包活动ID
    private Double totalAmount;  // 红包总金额
    private Integer totalCount;  // 红包总数量
    private Integer grabbedCount;  // 已领取数量
    private LocalDateTime startTime;  // 活动开始时间
    private LocalDateTime endTime;  // 活动结束时间
    private Integer status;  // 活动状态(0-已结束 1-未开始 2-进行中)
    private Integer version;  // 乐观锁版本号
    private LocalDateTime createTime;  // 创建时间
    private LocalDateTime updateTime;  // 更新时间
}
